package org.zephyr.fastboot.config.security;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author: ZephyrGao
 * @Date: 2024/6/18 17:56
 * @Description:
 */

public class JwtToken implements AuthenticationToken {
    /**
     * 继承AuthenticationToken，跟JwtRealmh中的doGetAuthenticationInfo的参数类型保持一致
     */
    private final String token;

    public JwtToken(String token){
        this.token = token;
    }


    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
